//package com.zq.service;
//
//import com.zq.cache.util.RedisScriptUtils;
//import org.springframework.cache.annotation.Cacheable;
//import org.springframework.stereotype.Service;
//
///**
// * Created by system.out on 2017/3/22.
// */
//@Service
//public class TestService {
//
//    @Cacheable(value = {"mycache","redis"},key = "#root.methodName")
//    public String getUsername(){
//        System.out.println("username从数据库读取");
//        return "jack";
//    }
//
//    @Cacheable(value = {"mycache","redis"},key = "#root.methodName")
//    public String getAddress(){
//        System.out.println("address从数据库读取");
//        return "beijing";
//    }
//}
